const Sequelize = require("sequelize");
const db = require("../db");

// 创建model
var UserModel = db.define(
    "User",
    {
        id:{
            type: Sequelize.INTEGER,
            field: "id",
            primaryKey: true,
            autoIncrement: true
        },
        username: {
            type: Sequelize.STRING,
            field: "username"
        },
        pwd: {
            type: Sequelize.STRING,
            field: "pwd",
        }
       
    },
    { timestamps: false }
);

module.exports = UserModel;
